<?
require("config.php");

$location_status .= " | Edit";
$menuname = NULL;
$menutarget = NULL;

if (NULL!=$action){

	$dir = $table . "/";

   $field = array(
	"details",
	);
 
   $content = array(
	$aboutus,
	);

	$exp = "code='aboutus'";

   myUpdate($table,$field,$content,$exp);
   $content = array(
	$ourtraining,
	);

	$exp = "code='ourtraining'";

   myUpdate($table,$field,$content,$exp);
	 
	 $content = array(
	$aevening,
	);

	$exp = "code='aevening'";

   myUpdate($table,$field,$content,$exp);
	 
	 $content = array(
	$newsletters,
	);

	$exp = "code='newsletters'";

   myUpdate($table,$field,$content,$exp);
   
   $content = array(
	$courseprog,
	);

	$exp = "code='courseprog'";

   myUpdate($table,$field,$content,$exp);
   
   $content = array(
	$booking1,
	);
 
	$exp = "code='booking1'";

   myUpdate($table,$field,$content,$exp);
   
   $content = array(
	$booking2,
	);

	$exp = "code='booking2'";

   myUpdate($table,$field,$content,$exp);

   header("location:" . $rela_path . "share/msg.php?v=62");

   exit();

}


$Query = "SELECT 
details 
FROM $table WHERE code='aboutus' LIMIT 1";

$r=myQuery($Query);

$aboutus=$r[0][0];

$Query = "SELECT 
details 
FROM $table WHERE code='ourtraining' LIMIT 1";

$r=myQuery($Query);
$ourtraining=$r[0][0];

$Query = "SELECT 
details 
FROM $table WHERE code='aevening' LIMIT 1";

$r=myQuery($Query);
$aevening=$r[0][0];

$Query = "SELECT 
details 
FROM $table WHERE code='newsletters' LIMIT 1";

$r=myQuery($Query);
$newsletters=$r[0][0];

$Query = "SELECT 
details 
FROM $table WHERE code='courseprog' LIMIT 1";

$r=myQuery($Query);
$courseprog=$r[0][0];

$Query = "SELECT 
details 
FROM $table WHERE code='booking1' LIMIT 1";

$r=myQuery($Query);
$booking1=$r[0][0];

$Query = "SELECT 
details 
FROM $table WHERE code='booking2' LIMIT 1";

$r=myQuery($Query);
$booking2=$r[0][0];

require($rela_path . "inc/header.php");
require($rela_path . "bin/date.php");

?>



<form action="" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="edit">
<input name="Code" type="hidden" value="<?print($Code)?>">





<table width="95%" border="0" align="center">
  <tr> 
    <td valign="top"> <table border="0" cellspacing="5" cellpadding="1">
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>

          <tr> 
            <td class="tdheader">About US : </td>
            <td><textarea class="text" name="aboutus" cols="95" rows="20"><?print($aboutus)?></textarea></td>
          </tr>

		            <tr> 
            <td class="tdheader">Our Training : </td>
            <td><textarea class="text" name="ourtraining" cols="95" rows="20"><?print($ourtraining)?></textarea></td>
          </tr>
		            <tr>
                      <td class="tdheader">Courses &amp; Programs  : </td>
		              <td><textarea name="courseprog" cols="95" rows="20" class="text" id="courseprog"><?print($courseprog)?></textarea></td>
          </tr>
		            <tr>
                  <td class="tdheader">Newsletters Description: </td>
		              <td>
                    <textarea name="newsletters" cols="50" rows="15" class="text" id="newsletters"><?print($newsletters)?></textarea>                  </td>
          </tr>
		            <tr>
		              <td class="tdheader">Acuity Evening Description: </td>
		              <td>
		                <textarea name="aevening" cols="50" rows="15" class="text" id="aevening"><?print($aevening)?></textarea>		              </td>
          </tr>
		            <tr>
		              <td class="tdheader">Coach Booking 1 </td>
		              <td><textarea name="booking1" cols="50" rows="15" class="text" id="booking1"><?print($booking1)?></textarea></td>
          </tr>
		            <tr>
		              <td class="tdheader">Coach Booking 2 </td>
		              <td><textarea name="booking2" cols="50" rows="15" class="text" id="booking2"><?print($booking2)?></textarea></td>
          </tr>















              </table>
    </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td> <input type="image" src="../../images/bt_cancel.gif" onClick="Redirect('../media_main.php',1);return false;"> <input type="image" src="../../images/bt_save.gif">
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>

<br>
<br>
<br>


</form>

<?
require($rela_path . "inc/footer.php");
?>
